package com.xkdx.guangguang.fragment.user;

import android.content.Context;

import com.xkdx.guangguang.module.util.BaseSharePrefenceUtil;

public class UserSharePrefence extends BaseSharePrefenceUtil {

	public UserSharePrefence(Context context, String name) {
		super(context, name);
	}

	public void setUserID(String UserID) {
		editor.putString("UserID", UserID);
		editor.commit();
	}

	public String getUserID() {
		return sp.getString("UserID", "");
	}

	public void setUserLoginToken(String LoginToken) {
		editor.putString("LoginToken", LoginToken);
		editor.commit();
	}

	public String getUserLoginToken() {
		return sp.getString("LoginToken", "");
	}

	public void setLoginToken(String LoginToken) {
		editor.putString("LoginToken", LoginToken);
		editor.commit();
	}

	public String getLoginToken() {
		return sp.getString("LoginToken", "");
	}

	public void setUserSex(String sex) {
		editor.putString("sex", sex);
		editor.commit();
	}

	public String getUserSex() {
		return sp.getString("sex", "-1");
	}

	public void setUserBirthday(String birthday) {
		editor.putString("birthday", birthday);
		editor.commit();
	}

	public String getUserBirthday() {
		return sp.getString("birthday", "");
	}

	public void setUserEmail(String email) {
		editor.putString("email", email);
		editor.commit();
	}

	public String getUserEmail() {
		return sp.getString("email", "");
	}

	public void setUserEmailVerified(String EmailVerified) {
		editor.putString("EmailVerified", EmailVerified);
		editor.commit();
	}

	public String getUserEmailVerified() {
		return sp.getString("EmailVerified", "False");
	}

	public void setUserMobilePhone(String MobilePhone) {
		editor.putString("MobilePhone", MobilePhone);
		editor.commit();
	}

	public String getUserMobilePhone() {
		return sp.getString("MobilePhone", "");
	}

	public void setUserMobilePhoneVerified(String MobilePhoneVerified) {
		editor.putString("MobilePhoneVerified", MobilePhoneVerified);
		editor.commit();
	}

	public String getUserMobilePhoneVerified() {
		return sp.getString("MobilePhoneVerified", "False");
	}

	public void setUserErrorCode(String ErrorCode) {
		editor.putString("ErrorCode", ErrorCode);
		editor.commit();
	}

	public String getUserErrorCode() {
		return sp.getString("ErrorCode", "");
	}

	public void setUserMessage(String Message) {
		editor.putString("Message", Message);
		editor.commit();
	}

	public String getUserMessage() {
		return sp.getString("Message", "");
	}

	public void setUserType(String Type) {
		editor.putString("userType", Type);
		editor.commit();
	}

	public String getUserType() {
		return sp.getString("userType", "");
	}

	public void setUserStatus(String Status) {
		editor.putString("Status", Status);
		editor.commit();
	}

	public String getUserStatus() {
		return sp.getString("Status", "");
	}

	public void setUserNickName(String NickName) {
		editor.putString("NickName", NickName);
		editor.commit();
	}

	public String getUserNickName() {
		return sp.getString("NickName", "");
	}

	public void setUserPictureUrl(String PictureUrl) {
		if (PictureUrl.equals("")) {
			editor.putString("PictureUrl", "1");
			editor.commit();
		} else {
			editor.putString("PictureUrl", PictureUrl);
			editor.commit();
		}
	}

	public String getUserPictureUrl() {
		return sp.getString("PictureUrl", "");
	}

	// 用户登录信息
	public void setUserLoginName(String name) {
		editor.putString("username", name);
		editor.commit();
	}

	public String getUserLoginName() {
		return sp.getString("username", "");
	}

	public void setUserPassword(String passwrod) {
		editor.putString("password", passwrod);
		editor.commit();
	}

	public String getUserPasswrod() {
		return sp.getString("password", "");
	}

	public void setUserPoint(String point) {
		editor.putString("point", point);
		editor.commit();
	}

	public String getUserPoint() {
		return sp.getString("point", "");
	}

	/**
	 * 新浪微博信息
	 */
	public void setSinaWeiboUserID(String SinaWeiboUserID) {
		editor.putString("SinaWeiboUserID", SinaWeiboUserID);
		editor.commit();
	}

	public String getSinaWeiboUserID() {
		return sp.getString("SinaWeiboUserID", "");
	}

	public void setSinaWeiboNickName(String SinaWeiboNickName) {
		editor.putString("SinaWeiboNickName", SinaWeiboNickName);
		editor.commit();
	}

	public String getSinaWeiboNickName() {
		return sp.getString("SinaWeiboNickName", "");
	}

	public void setSinaWeiboToken(String SinaWeiboToken) {
		editor.putString("SinaWeiboToken", SinaWeiboToken);
		editor.commit();
	}

	public String getSinaWeiboToken() {
		return sp.getString("SinaWeiboToken", "");
	}

	public void setSinaWeiboExpireTime(String SinaWeiboExpireTime) {
		editor.putString("SinaWeiboExpireTime", SinaWeiboExpireTime);
		editor.commit();
	}

	public String getSinaWeiboExpireTime() {
		return sp.getString("SinaWeiboExpireTime", "");
	}

	/**
	 * 腾讯登录信息
	 */

	public void setQQNickName(String QQNickName) {
		editor.putString("QQNickName", QQNickName);
		editor.commit();
	}

	public String getQQNickName() {
		return sp.getString("QQNickName", "");
	}

	public void setQQOpenID(String QQOpenID) {
		editor.putString("QQOpenID", QQOpenID);
		editor.commit();
	}

	public String getQQOpenID() {
		return sp.getString("QQOpenID", "");
	}

	public void setQQToken(String QQToken) {
		editor.putString("QQToken", QQToken);
		editor.commit();
	}

	public String getQQToken() {
		return sp.getString("QQToken", "");
	}

	public void setQQExpireTime(String QQExpireTime) {
		editor.putString("QQExpireTime", QQExpireTime);
		editor.commit();
	}

	public String getQQExpireTime() {
		return sp.getString("QQExpireTime", "");
	}

	// 新增用户验证类型
	public void setVerifyType(String verifyType) {
		editor.putString("VerifyType", verifyType);
		editor.commit();
	}

	public String getVerifyType() {
		return sp.getString("VerifyType", "");
	}

	public String geShopIds() {
		return sp.getString("ShopIds", "");
	}

	public void setShopIds(String shopIds) {
		editor.putString("ShopIds", shopIds);
		editor.commit();
	}

}
